#pragma once
#include<iostream>
extern "C"
{
#include"libavcodec/avcodec.h"
#include"libavformat/avformat.h"
#include"libavutil/avutil.h"
#include"libavutil/opt.h"
#include"libswresample/swresample.h"
#include <libavutil/imgutils.h>
}
#pragma comment(lib,"avcodec.lib")
#pragma comment(lib,"avformat.lib")
#pragma comment(lib,"avutil.lib")
#pragma comment(lib,"swresample.lib")

#define AUDIO_TIME_BASE 1000000
#define VIDEO_TIME_BASE 1000000
#define LOG(X) std::cout<<(X)<<std::endl